// pages/management/all/index.js
Page({
     /**
      * 页面的初始数据
      */
     data: {
       goodsImg1: wx.getStorageSync("goodsImg1"),
       goodsImg2: wx.getStorageSync("goodsImg2"),
       goodsImg3: wx.getStorageSync("goodsImg3"),
       goodsImg4: wx.getStorageSync("goodsImg4"),
       goodsImg6: wx.getStorageSync("goodsImg5"),
       goodsImg7: wx.getStorageSync("goodsImg6"),
       goodsImg5: wx.getStorageSync("goodsImg7"),

          listImg:[
               {
                    id:1,
                    text:'档案'
               },
               {
                    id: 2,
                    text: '新品'
               },
               {
                    id: 3,
                    text: '采购'
               },
               {
                    id: 4,
                    text: '批发'
               },
               {
                    id: 5,
                    text: '订货'
               },
               {
                    id: 6,
                    text: '库存'
               },
               {
                    id: 7,
                    text: '系统'
               },
          ],
          indexfo:0
     },
     selecd:function(e){
          let indexfo = e.currentTarget.dataset.index
          this.setData({
               indexfo
          })
     },
     /**
      * 生命周期函数--监听页面加载
      */
     onLoad: function (options) {
      //  let that = this
      //  let goodsImg1 = wx.getStorageSync("goodsImg1")
      //  console.log(goodsImg1)
      //  that.setData({
      //    goodsImg1: goodsImg1
      //  })
     },

     /**
      * 生命周期函数--监听页面初次渲染完成
      */
     onReady: function () {

     },

     /**
      * 生命周期函数--监听页面显示
      */
     onShow: function () {

     },

     /**
      * 生命周期函数--监听页面隐藏
      */
     onHide: function () {

     },

     /**
      * 生命周期函数--监听页面卸载
      */
     onUnload: function () {

     },
     /**
      * 页面相关事件处理函数--监听用户下拉动作
      */
     onPullDownRefresh: function () {
     },

     /**
      * 页面上拉触底事件的处理函数
      */
     onReachBottom: function () {

     },

     /**
      * 用户点击右上角分享
      */
     onShareAppMessage: function () {

     }
})